<?php
class Bbling_Model_Collection_List extends Bbling_Model_Collection_Abstract{
	public function _initSelect(){
		$businessEntity = new Bbling_Model_Entity_Business();
		$businessFields = $businessEntity->getResource()->getTableFields();
		
		$this->getSelect()->from(array('list_table'=>'list'),array('id','user_id AS investor_id','business_id'));
		$this->getSelect()->join(array('main_table'=>'business'), 'list_table.business_id = main_table.id', $businessFields);
		
		$this->initJoin();
		return $this;
	}
}